package bigdata;

import com.hazelcast.client.HazelcastClient;
import com.hazelcast.client.config.ClientConfig;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IMap;

public class Clinet {

	public static void main(String[] args) throws InterruptedException {
		ClientConfig config = new ClientConfig();
		config.getSerializationConfig().addPortableFactory(1, new MyPortableFactory());
		HazelcastInstance hz = HazelcastClient.newHazelcastClient(config);

		IMap<Integer, Rule> ruleMap = hz.getMap("ruleMap");
		LiteMember.query(ruleMap);
		LiteMember.kv(ruleMap);

		System.exit(0);
	}

}
